package com.travel.blog;


import com.travel.blog.entity.InfoEntity;
import com.travel.blog.service.InfoService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class test {

    @Autowired
    private InfoService infoService;

    @Test
    public void test1(){
        InfoEntity infoEntity = new InfoEntity();
        infoEntity.setContent("2222");
        infoService.save(infoEntity);
    }
}
